﻿using System;
using System.ComponentModel.DataAnnotations.Schema;
using Volo.Abp.Data;

namespace EcoSystem
{
    /// <summary>
    /// 附件字段信息
    /// </summary>
    [Serializable]
    [NotMapped]
    public class AttachmentFieldDto
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Caption { get; set; }

        /// <summary>
        /// 是否必填
        /// </summary>
        public bool Required { get; set; }

        /// <summary>
        /// 值类型
        /// </summary>
        public Nullable<FieldValueType> ValueType { get; set; }

        /// <summary>
        /// 输入方式
        /// </summary>
        public Nullable<FieldInputType> InputType { get; set; }

        /// <summary>
        /// 系统默认值类型
        /// </summary>
        public Nullable<SystemValueType> SystemType { get; set; }

        /// <summary>
        /// 默认值
        /// </summary>
        public string DefaultValue { get; set; }

        /// <summary>
        /// 输入组件属性
        /// </summary>
        public ExtraPropertyDictionary InputProps { get; set; }
    }

}
